


//
//  CellFootView.m
//  FM
//
//  Created by MB__Lee on 2018/4/9.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "CellFootView.h"

#import "FootView.h"

#define CEll_height 40

@interface CellFootView()
@property (weak, nonatomic) IBOutlet UIButton *nameBTN;

@property (weak, nonatomic) IBOutlet UIButton *AddBTN;



@end

@implementation CellFootView

-(void)setWorksArray:(NSArray<WorkModel *> *)worksArray{
    
   
    NSString *name = nil;
    
    for (WorkModel *model in worksArray) {
        if (name == nil) {
            name = [NSString stringWithFormat:@"%@",model.name];
        }else{
            name  =[NSString stringWithFormat:@"%@ %@",name,model.name];
        }
    }
    
    [self.nameBTN setTitle:name forState:UIControlStateNormal];
    
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
